<template>
        <div id="center">
            <div class="center4">
                <h2>必看剧目榜</h2>
                <div class="c4div1">
                    <div class="c4div-con" >
                        <div class="c4divcon" v-for="must in musts" :key="must.name">
                          <router-link :to="'/Detail/' +must.id">
                            <div class="c4condiv"><img :src="must.img" alt=""></div>
                            <li class="c4conli1">{{must.na}}···</li>
                            <li class="c4conli2"><van-rate v-model="must.star" readonly size="6" color="#f98f45" /><span>{{must.score}}</span>
                            </li>
                            </router-link>
                        </div>
                    </div>
                </div>
                <h2>精彩演出</h2>
            </div>
        </div>
</template>
<script>
import axios from "axios";

export default {
  name: "MustSeePlay",
   created() {
    axios({
      url: "/mustsee",
      method: "get"
    }).then(res => {
        this.musts=res.data;
        // console.log(res.data)
    });
  },
  data(){
    return{
      musts:[],
    }
  }
};
</script>

<style scoped>
#center {
  height:3rem;
  width: 3.27rem;
  overflow-x: auto;
  margin: 0 auto
  /* font-size: 0.19rem; */
}
#center {
  flex: 1;
  overflow-y: auto;
}
#center .center4 {
  width: 100%;
  height: 2.55rem;
  box-sizing: border-box;
  padding-left: 0.0825rem;
}
#center .center4 h2 {
  height: 0.47rem;
  font-size: 0.19rem;
  box-sizing: border-box;
  padding-top: 0.1rem;
  font-weight: normal;
}
#center .center4 .c4div1 {
  width: 100%;
  height: 2rem;
  overflow-x: auto;
}
#center .center4 .c4div-con {
  width: 200%;
  height: 1.8rem;
  display: flex;
  justify-content: space-between;
}
#center .center4 .c4divcon {
  width: 0.9rem;
  height: 1.88rem;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  margin-top: 0.05rem;
}
#center .center4 .c4condiv {
  width: 100%;
  height: 1.2rem;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 0.1rem;
  overflow: hidden;
  /* background: url(./../img/jie1.gif) no-repeat center; */
  background-size: contain;
}
#center .center4 .c4condiv img{
    width: 100%;
    height: 100%,
}
#center .center4 .c4conli1 {
  height: 0.15rem;
  line-height: 0.15rem;
  font-size: 0.0875rem;
  color: #000;
}
#center .center4 .c4conli2 {
  display: flex;
  /* width: 100%; */
  font-size: 0.065rem;
  color: #9c9ca4;
}
#center .center4 .c4conli2 span {
  margin-left: 0.1rem;
}
</style>
